package com.zifeng.feign;

import com.zifeng.common.R;
import com.zifeng.pojo.Assignment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "assignment-service")
public interface AssignmentFeignClient {

    @GetMapping("/assignment/finishedlist")
    public R getFinishedAssignments();

    @PutMapping("/assignment")
    public R update(Assignment assignment);
}
